
import { interfaceList } from '~/composables';
import service from '~/utils/request';
/**
 * 中间接口
 * @param api 接口
 * @param data 参数
 * @param adp 
 * @param type 请求类型 
 */
export function Adapt(api: string, data?: any, adp: string = "SB_D_DoTimeSheetFormDayShift", type: string = "post") {
    const arr = interfaceList.value[adp];
    const url = arr[api];
    const ip = arr["keyUrl"];
    return type == "post" ? service.post(ip + url, data) : service.get(ip + url + data)
}